<?php

class Bai_viet extends Eloquent {
	protected $fillable = [];
	protected $guarded = array();

	public function get_dsbaiviet(){
		$results = DB::table('bai_viet')->get();
		return $results;
	}

	public function get_dsbaiviet($ma_cm){
		$results = DB::table('bai_viet')->where('MA_CM',$ma_cm)->get();
		return $results;
	}

}